 $(document).scroll(() => {

     if ($(document).scrollTop() > $('.school_serbox').offset().top + $('.school_serbox').height()) {

         $('.search_head').css({
             display: 'flex',
             position: 'fixed',
             top: '0'
         })

     } else {
         $('.search_head').hide()
     }

 })